package org.bcncoding.appengine.droiding.server.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class StationData {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key id = null;
	
	
	@Persistent
	private Integer bicycles = 0;
	
	@Persistent
	private Integer slots = 0;
	
	@Persistent
	private Boolean available = Boolean.TRUE;
	
	@Persistent
	private Date lastUpdate = null;

	
	public Integer getBicycles() {
		return bicycles;
	}

	public void setBicycles(Integer bicycles) {
		this.bicycles = bicycles;
	}

	public Integer getSlots() {
		return slots;
	}

	public void setSlots(Integer slots) {
		this.slots = slots;
	}

	public Boolean getAvailable() {
		return available;
	}

	public void setAvailable(Boolean available) {
		this.available = available;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public Key getId() {
		return id;
	}
	
}
